package at.fhj.itm11.forum.service;

import java.util.List;

import org.primefaces.model.UploadedFile;

import at.fhj.itm11.forum.service.dtos.PostDTO;
import at.fhj.itm11.forum.service.dtos.TopicDTO;
import at.fhj.itm11.forum.service.dtos.UserDTO;

public interface PostService {

	public final String EXCEPTION_TITLE_EMPTY = "title_empty";
	public final String EXCEPTION_TEXT_EMPTY = "text_empty";
	public final String EXCEPTION_ONLY_IMAGES = "only_images";
	public final String EXCEPTION_ONLY_VIDEOS = "only_videos";
	
	public List<PostDTO> getPostsByTopicId(long topicId);
	
	public long addPost(String title, String text, UploadedFile image,
			UploadedFile video, TopicDTO topic, UserDTO user) throws IllegalArgumentException;
	
	public PostDTO findById(long id);

}